package ooday04;

public class Dog extends Animal implements Swim {

    public Dog() {
    }

    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    public void lookHouse(){
        System.out.println(age + "岁的" + color + "的狗狗" + name + "在看家……");
    }
    public void eat(){
        System.out.println(age + "岁的" + color + "的狗狗" + name + "在吃狗粮……");
    }

    public void swim(){
        System.out.println(name+"会游泳");
    }
}
